package com.fsnbigdata.service.api;

import com.fsnbigdata.domain.ZhDiversityReport;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface DiversityReportService {
    
    public abstract List<ZhDiversityReport> findAllByTitleLike(String title);

    public abstract ZhDiversityReport setDocs(ZhDiversityReport organism, Iterable<Long> docs);
    
    ZhDiversityReport findById(long id);
    
    List<ZhDiversityReport> findAll();
    
    ZhDiversityReport save(ZhDiversityReport zhDiversityReport);
    
    ZhDiversityReport update(ZhDiversityReport zhDiversityReport);
    
    void deleteOne(Long id);        //删除一个
    
    void deleteMany(Iterable<Long> ids);   //删除多个

//    String getContent(String province,String city,String county,String wetland,String weland) throws Exception;

    String getContent(ZhDiversityReport zhDiversityReport) throws Exception;

    List getArea(String city);

    List getPageList(String city, String county, Pageable pageable);

    List getList(String title, Pageable pageable);
    
    
    String testWords() throws Exception;

    List<String> getAccessory(String province, String city, String county, String sign);

    List getProtection();

    List getList1(String title,String creator, Pageable pageable1);

    String findTitleById(Long id);


}
